<?php

class Workset_View_Helper_AttachmentFile extends Zend_View_Helper_HtmlElement {

    public function attachmentFile($file, $attrs = array()) {

        $attrs += array(
            'id' => $file['id'],
            'href' => $file['shortpath'],
            'target' => '_blank'
        );

        return '<a '.$this->_htmlAttribs($attrs).'>'.$file['name'].'</a>';

    }

}

?>